package com.simple.core.impl;

import com.simple.annotation.Inject;
import com.simple.annotation.Instance;
import com.simple.core.Carrier;
import com.simple.core.Center;
import com.simple.core.Sender;

import java.util.List;

@Instance
public class SenderImpl implements Sender {

    @Inject
    private Center center;

    @Override
    public <T> List<T> send(Carrier carrier) {
        return center.notifyReceiver(carrier);
    }
}
